package com.example.android.network.service;

import com.example.android.bean.BaseBean;
import com.example.android.bean.Goods;
import com.example.android.bean.GoodsDetail;
import com.example.android.bean.Message;
import com.example.android.bean.Mine;

import java.util.List;

import io.reactivex.rxjava3.core.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface GoodsService {
    @GET("goods_list")
    Flowable<BaseBean<List<Goods>>> getGoods();

    @GET("goods_detail")
    Flowable<BaseBean<GoodsDetail>> getGoodsDetail(@Query("goodsId") int GoodsId);

    @GET("mine")
    Flowable<BaseBean<Mine>> getMineData();

    @GET("message")
    Flowable<BaseBean<List<Message>>> getMessage();

    @GET("hb")
    Flowable<BaseBean<List<Goods>>> getHBList();

}
